import request from "@/utils/request";

export function getAll(data) {
  return request({
    url: "/invtask/getAll",
    method: "GET",
    params: data
  });
}

export function assignmentTask(data) {
  return request({
    url: "/invapptask/assignmentTask",
    method: "GET",
    params: {
      taskCodes: data
    }
  });
}

export function updateTaskprior(taskcodes, prior) {
  return request({
    url: "/invtask/updateTaskprior",
    method: "GET",
    params: {
      taskcodes: taskcodes,
      prior: prior
    }
  });
}

export function startOrEndTask(data) {
  return request({
    url: "/invapptask/startOrEndTask",
    method: "GET",
    params: data
  });
}

export function getPower() {
  return request({
    url: "/agv/getPower",
    method: "GET"
  });
}

export function moveAGV() {
  return request({
    url: "/agv/moveAGV",
    method: "GET"
  });
}

export function startAGV() {
  return request({
    url: "/agv/startAGV",
    method: "GET"
  });
}

export function stopAGV() {
  return request({
    url: "/agv/stopAGV",
    method: "GET"
  });
}

export function suspendAGV() {
  return request({
    url: "/agv/suspendAGV",
    method: "GET"
  });
}